# -*- coding: utf-8 -*-

if __name__ == "__main__":
    str = 'imooc'

    print(str)
    print(str[0:-1])
    print(str[0])
    print(str[2:5])
    print(str[2:])
    print(str * 2)
    print(str + "TEST")
    print(str + "imooc")
